import Vue from 'vue'
import VueRouter from 'vue-router'
Vue.use(VueRouter)
const routes = [
    {
        path: '/',
        redirect: "/index",
    },
    {
        path: '/index',
        component: () => import('../views/index')
    },
    {
        path: '/layout',
        component: () => import('../views/layout'),
        // redirect: '/layout/index',
        children: [
            // {
            //     path: 'index',
            //     component: () => import('../views/index')
            // },
            {
                path: 'broker',
                component: () => import('../views/broker')
            },
            {
                path: 'category',
                component: () => import('../views/category')
            },
            {
                path: 'aboutUs',
                component: () => import('../views/aboutUs')
            },
            {
                path: 'estateList',
                component: () => import('../views/estateList')
            },
            {
                path: 'estateDetail',
                component: () => import('../views/estateDetail')
            },

        ]
    }
]

const router = new VueRouter({
    routes
})

export default router

